//
//  BulletView.m
//  SpaceStorm
//
//  Created by 祥 雍 on 13-4-26.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "BulletView.h"

@implementation BulletView

+(id) viewWithModelId:(int) modelId
{
    return [[[self alloc] initWithModelId:modelId] autorelease]; 
}

-(id) initWithModelId:(int) modelId
{
    self = [super init]; 
	
	if (self!= nil) 
    {
        //船的背景层
        CCSprite* bulletBG = [CCSprite spriteWithSpriteFrameName:[NSString stringWithFormat:@"bullet%d.png", modelId]];
        self.texture = bulletBG.texture; 
        self.textureRect = CGRectMake(0, 0, bulletBG.contentSize.width, bulletBG.contentSize.height);
       
    }
    
    return self;
}

- (void) dealloc
{
	
	// don't forget to call "super dealloc"
	[super dealloc];
}

@end
